package com.donzell.action;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.donzell.model.Tuser;
import com.donzell.pagemode.Json;
import com.donzell.service.UserServiceI;

@Namespace("/")
@Action(value="TestAction")
public class TestAction extends BaseAction{
	
	@Autowired
	private UserServiceI userService;
	
	
	public void json() {
		Tuser user = userService.findByName("1");
		super.writeJson(user);

	}
}
